<?php	require('../../_db.php');		if (!isset($_POST['fb_friend_id']) ||	!is_numeric($_POST['fb_friend_id']) ||	!isset($_POST['fb_friend_name'])) exit(-1);		$_POST['fb_friend_name'] = mysql_real_escape_string($_POST['fb_friend_name']);		// enter database info	if(!$_SESSION['recomandareid']) die();	$q = " UPDATE recomandari SET `fb_friend_id`='".$_POST['fb_friend_id']."',  `fb_friend_name`= '".$_POST['fb_friend_name']."' WHERE `id`='".$_SESSION['recomandareid']."'";	if ($ok = mysql_query($q)) echo mysql_insert_id();	else echo -1;	